import request from "@/utils/request";
import { param } from "@/utils";

/**
 * 获取在线财务单据列表
 * @param {*} query 
 * @param {*} data 
 * @returns 
 */
export const getOnlineList = (query, data) => {
    return request({
        url: `/finance/receipt/online/page?${param(query)}`,
        method: 'post',
        data
    })
}

/**
 * 开票
 */
export const invoice = (data) => {
    return request({
        url: '/finance/receipt/updateBillStatus',
        method: 'post',
        data
    })
}
/**
 * 批量收付款发送验证码
 */
export const launchPay = (data) => {
    return request({
        url: '/finance/onlinePay/pay',
        method: 'post',
        data
    })
}

export const comfirmPay=(data)=>{
    return request({
        url: '/finance/onlinePay/confirm',
        method: 'post',
        data
    })
}
